<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div>更新菜单信息</div>
	<form action="/update" method="post">
	<input type="hidden" name="id" value="${curr.id }">
		<div>父级菜单 :
		 <select name="pid">
			<option value="0">根</option>
			<c:forEach items="${menus }" var="menu">
				<option value="${menu.id }" <c:if test="${menu.id == curr.pid }">selected="selected"</c:if> >${menu.name }</option>
			</c:forEach>
		 </select>
		</div>
		<div>
			菜单名称 : <input type="text" name="name" value="${curr.name }">
		</div>	
		<input type="submit" name="提交">
	</form>
</body>
</html>